#ifndef UMLVIEW_H
#define UMLVIEW_H

#include <QGraphicsView>
#include <QGLWidget>
#include <QPrinter>

#include "uml/umldiritem.h"
#include "uml/relations/umlrelation.h"

class UmlView : public QGraphicsView
{
    Q_OBJECT
public:
    UmlView(QWidget *parent = 0);

    void setPrinter(QPrinter *printer);

public slots:
    void zoomIn();
    void zoomOut();
    void zoomReset();
    void resetScene();

private:
    qreal _zoomFactor;
    int _zoomLevel;
    QPrinter *_printer;

    QGraphicsScene _emptyScene;
};

#endif // UMLVIEW_H
